<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:t="http://myfaces.apache.org/tomahawk">
<ui:composition template="/pages/layout/masterLayout.xhtml">
	<ui:define name="tituloPagina">Envio de Materiais</ui:define>
	<ui:define name="conteudo">
		<br/>
		<div id="alinhamentos">			
			<h1>:: Envio de Materiais ::</h1>		
			<h:messages globalOnly="true" />
			<h:form enctype="multipart/form-data">
				<div id="campos">				
					<t:inputFileUpload value="#{arquivoBean.uploadedFile}" id="file" required="true" requiredMessage="Selecione um arquivo válido."  accesskey="s" />
					<h:message for="file"/>
					<br />
				</div>
			 
				<div id="labels">	
					Tags:			
				</div>
				<div id="campos">	
					<h:inputText title="Materia, nome, autor, outros" value="#{arquivoBean.tags}" id="tag" required="true" requiredMessage=" Tag requerida." style="width : 200px;" />
					<h:message for="tag"/>
					<br />						
				</div>
				
				<div id="labels">				
					Descrição:
				</div>							
				<div id="campos">
					<h:inputTextarea cols="37" rows="5" value="#{arquivoBean.descricao}" id="desc" required="true" requiredMessage=" Descrição requerida." />
					<h:message for="desc"/>
					<br />						
				</div>
				<div id="botao_pequeno2">
					<h:commandButton value=" Enviar " action="#{arquivoBean.fazUpload}" />
					<br/>
				</div>	
			</h:form>
		</div>
	</ui:define>
</ui:composition>
</html>